//
//  LauncherViewController.m
//  MemoryTravel
//
//  Created by dllo on 15/12/21.
//  Copyright © 2015年 fcx. All rights reserved.
//

#import "LauncherViewController.h"

@interface LauncherViewController ()

@end

@implementation LauncherViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    UIImageView *firstImage  = [[UIImageView alloc]initWithFrame:[[UIScreen mainScreen] bounds]];

    [self.view addSubview:firstImage];

    firstImage.image = [UIImage imageNamed:@"100005043319125.png"];

    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];

    button.frame = CGRectMake(Width / 2.5, Height / 4 * 3 , Width / 4, Height / 20);

    [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];

    [button setTitle:@"立即体验" forState:UIControlStateNormal];

    button.layer.masksToBounds = YES;//裁掉边界

    button.layer.cornerRadius = 5;//设置半径

    button.backgroundColor = [UIColor purpleColor];

    [self.view addSubview:button];
}

- (void)buttonAction:(UIButton *)btn{

    AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];

    [appDelegate FirstLauncherController];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
